package com.ktmall.ktmalluijava.pojo;

import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author ZhouShuang
 * @version 17
 * @Title
 * @date 2025/5/9 下午7:37
 */
@Getter
@Setter
public class Sku {
    private Integer id;//skuId
    private Integer goodsId; //商品id
    private String stockSku; //库存sku(唯一编码)
    private BigDecimal price; //当前价格
    private BigDecimal oldPrice; //原价
    private Long inventory ; //库存数量
    private String picture; //商品图片
    private Integer status; //状态(0:正常 1:禁用)
    private String createTime; //创建时间
    private String updateTime; //修改时间
    private Goods goods ; //商品对象
    private List<Attr> attrs ; //规格属性列表

    public Sku(){

    }

    public Sku(Integer id, Integer goodsId, String stockSku, BigDecimal price, BigDecimal oldPrice, Long inventory, String picture, Integer status, String createTime, String updateTime, Goods goods, List<Attr> attrs) {
        this.id = id;
        this.goodsId = goodsId;
        this.stockSku = stockSku;
        this.price = price;
        this.oldPrice = oldPrice;
        this.inventory = inventory;
        this.picture = picture;
        this.status = status;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.goods = goods;
        this.attrs = attrs;
    }
}
